package cn.edu.dao;

import cn.edu.domain.Student;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author Davey chan
 */
public interface StudentDao {

    @Select("select * from student")
    List<Student> findAll();

    @Select("select *from student where Sno=#{id}")
    Student findById(Integer id);
}
